<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="jypath" value="${pageContext.request.contextPath}"/>
<%@include file="../common/operation_forbid.jsp" %>
<script type="text/javascript">
    var contextPath = '${jypath}';
    var modelList=${modelList};
</script>
<%@include file="../common/jsVersion.jsp"%>
<!DOCTYPE html >
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>权限分配</title>
    <!-- neptune -->
     <link rel="stylesheet" type="text/css"  href="${jypath}/static/ext/resources/ext-theme-gray/ext-theme-gray-all.css" />
     <link rel="stylesheet" type="text/css"  href="${jypath}/static/css/icon.css" />
     <script type="text/javascript" src="${jypath}/static/ext/ext-all.js"></script>
	 <script type="text/javascript" src="${jypath}/static/ext/locale/ext-lang-zh_CN.js"></script>
	 <script type="text/javascript" src="${jypath}/static/js/jquery/json2.js"></script> 
	 <script type="text/javascript" src="${jypath}/static/js/components/permissionAssignment.js?v=${jsVersion}"></script>
</head>
<script type="text/javascript">
   //modelList=JSON.parse(modelList);
   
   
   Ext.onReady(function() {
   	   var mainTabpanel = Ext.widget('tabpanel', {
   	        renderTo: document.body,
   	        plain: true,
   	        defaults :{
   	            autoScroll: true,
   	            bodyPadding: 10
   	        }
        });
   	 
	   	Ext.each(modelList, function (model, index){
	   		if(index<=5){
		   		var _tab = Ext.create('component.system.permissionAssignmentPanel', {
		   			id:model.modelCode,
	                title:model.modelName,
	                parentCode:model.modelCode
	            });
	            mainTabpanel.add(_tab);
	        
	        	mainTabpanel.setActiveTab(_tab);
	        }
	        
	   	});
   	 
   	  
   	 

   });
   
   
   
</script>
<body>
</body>
</html>